<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="totalPages" value="%{(totalRows%pageRows==0)?(totalRows/pageRows):((totalRows/pageRows)+1)}" />
<s:if test="#totalPages > 1">
<div class="list-page">
	<input type="hidden" name="naction" id="id_action" value="<%=request.getContextPath()%>${naction}"/>
	<input type="hidden" name="pageNo" id="id_pageNo" value="${pageNo}"/>
	<input type="hidden" name="totalPages" id="id_totalPages" value="${totalPages}"/>
	共${totalRows}条记录  | 页次: ${pageNo}/${totalPages}
	<s:if test="#totalPages < 2">
	[首页] [上一页] [下一页] [末页]
	</s:if>
	<s:elseif test="pageNo == 1">
	[首页] [上一页] [<a href="javascript:void(0);" onclick="page.next()">下一页</a>] [<a href="javascript:void(0);" onclick="page.go(${totalPages})">末页</a>]
	</s:elseif>
	<s:elseif test="pageNo < #totalPages">
	[<a href="javascript:void(0);" onclick="page.go(1)">首页</a>] [<a href="javascript:void(0);" onclick="page.prev()">上一页</a>] [<a href="javascript:void(0);" onclick="page.next()">下一页</a>] [<a href="javascript:void(0);" onclick="page.go(${totalPages})">末页</a>]
	</s:elseif>
	<s:elseif test="pageNo == #totalPages">
	[<a href="javascript:void(0);" onclick="page.go(1)">首页</a>] [<a href="javascript:void(0);" onclick="page.prev()">上一页</a>] [下一页] [末页]
	</s:elseif>
</div>
</s:if>
